using MicroMsg.Common.Event;
using System;
using System.Collections.Generic;
namespace MicroMsg.Storage
{
	public class QGroupStorage : StorageTable<QGroup, uint>
	{
		public QGroupStorage() : base((QGroup g) => g.nGroupID)
		{
		}
		public bool method_7(uint groupid)
		{
			return base.method_6((QGroup a) => a.nGroupID == groupid);
		}
		public bool updateList(List<QGroup> groupList)
		{
			return groupList != null && groupList.get_Count() > 0 && base.updateList<uint>(groupList, (QGroup g) => g.nGroupID);
		}
		public override void notify(int operation, QGroup item)
		{
			EventCenter.postCombineEvent(EventConst.ON_STORAGE_QQ_GROUP_ADD + operation, item);
		}
	}
}
